package simframe.util;

public class Location {

	private final double x;
	private final double y;
	
	public double getX() {
		return x;
	}
	
	public double getY() {
		return y;
	}
	
	public Location(double x, double y) {
		this.x = x;
		this.y = y;
	}
	
	public double dist(Location loc) {
		double dx = x - loc.getX();
		double dy = y - loc.getY();
		
		return Math.sqrt(dx*dx + dy*dy);
	}
}